{#extends file="./extend/mobile.htm"#} 
{#block name="title"#}{#$siteConfig.title|escape#}{#/block#}
{#block name="back"#}<a href="{#$smarty.get.r|escape|default:'profile.php'#}" data-icon="arrow-l" data-transition="slide" data-direction="reverse">返回</a>{#/block#}
{#block name="action"#}
	<a href="./" data-icon="home" data-iconpos="notext" class="ui-btn-right" data-ajax="false">Home</a>
{#/block#}

{#block name="content"#}

<h2>修改密码</h2>
{#if $smarty.server.REQUEST_METHOD=='POST'&&!$error#}
<p>密码已修改</p>
{#else#}
<form method="post" action="profile.php?action=password">
	{#if $error#}<p class="error">{#$error|escape#}</p>{#/if#}
	<div data-role="fieldcontain">
		<label for="password">密码: </label>
		<input name="password" type="password" id="password" placeholder="">
	</div>
	<div data-role="fieldcontain">
		<label for="newpassword">新密码: </label>
		<input name="newpassword" type="password" id="newpassword" placeholder="">
	</div>
	<div data-role="fieldcontain">
		<label for="newpassword2">重复新密码: </label>
		<input name="newpassword2" type="password" id="newpassword2" placeholder="">
	</div>
	
	<input type="submit" data-role="button" data-theme="b" value="修改">
</form>
{#/if#}
{#/block#}